package com.kefu.chat.service;

import com.kefu.chat.mapper.ChatReceptConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.kefu.chat.model.ChatReceptConfig;
import com.kefu.common.service.AbstractKefuService;

/**
 * @author CodeGenerator
 * @date 2021/12/21
 */
@Service
public class ChatReceptConfigService  extends AbstractKefuService<ChatReceptConfig>  {
    @Autowired
    protected ChatReceptConfigMapper chatReceptConfigMapper;

     
    public ChatReceptConfig getConfig(String adminId) {
        return getOne(Wrappers.lambdaQuery(ChatReceptConfig.class).eq(ChatReceptConfig::getAdminId, adminId));
    }

     
    public ChatReceptConfig update(ChatReceptConfig config) {
        return super.update(config);
    }
}
